/**
 * PaperDetailStatistic.java
 * Version 1.0.0
 * Created on 2019年1月22日
 *
 */
package com.yincheng.oes.business.exam.export.entity;

/**
 * @author yangsy
 * @version 1.0.0
 * @since
 * 创建时间：2019年1月22日
 * <p>
 * 功能描述：
 * <p>
 * 邮箱地址：446948434@qq.com
 */
public class PaperDetailStatistics {

    private String orderNum;// 题号

    private Integer correctCount;// 正确数

    private Integer count;// 答题总数

    private String question;// 主题干

    private String stem;// 分题干

    private String quesType;// 题目类型

    private String optionA;// 选项A

    private String optionB;// 选项B

    private String optionC;// 选项C

    private String optionD;// 选项D

    private String optionE;// 选项E

    private String answer;// 答案

    private String analysis;// 解析

    /**
     * @return the orderNum
     */
    public String getOrderNum() {
        return orderNum;
    }

    /**
     * @param orderNum the orderNum to set
     */
    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    /**
     * @return the correctCount
     */
    public Integer getCorrectCount() {
        return correctCount;
    }

    /**
     * @param correctCount the correctCount to set
     */
    public void setCorrectCount(Integer correctCount) {
        this.correctCount = correctCount;
    }

    /**
     * @return the count
     */
    public Integer getCount() {
        return count;
    }

    /**
     * @param count the count to set
     */
    public void setCount(Integer count) {
        this.count = count;
    }

    /**
     * @return the question
     */
    public String getQuestion() {
        return transform(question);
    }

    /**
     * @param question the question to set
     */
    public void setQuestion(String question) {
        this.question = question;
    }

    /**
     * @return the stem
     */
    public String getStem() {
        return transform(stem);
    }

    /**
     * @param stem the stem to set
     */
    public void setStem(String stem) {
        this.stem = stem;
    }

    /**
     * @return the quesType
     */
    public String getQuesType() {
        return quesType;
    }

    /**
     * @param quesType the quesType to set
     */
    public void setQuesType(String quesType) {
        this.quesType = quesType;
    }

    /**
     * @return the optionA
     */
    public String getOptionA() {
        return transform(optionA);
    }

    /**
     * @param optionA the optionA to set
     */
    public void setOptionA(String optionA) {
        this.optionA = optionA;
    }

    /**
     * @return the optionB
     */
    public String getOptionB() {
        return transform(optionB);
    }

    /**
     * @param optionB the optionB to set
     */
    public void setOptionB(String optionB) {
        this.optionB = optionB;
    }

    /**
     * @return the optionC
     */
    public String getOptionC() {
        return transform(optionC);
    }

    /**
     * @param optionC the optionC to set
     */
    public void setOptionC(String optionC) {
        this.optionC = optionC;
    }

    /**
     * @return the optionD
     */
    public String getOptionD() {
        return transform(optionD);
    }

    /**
     * @param optionD the optionD to set
     */
    public void setOptionD(String optionD) {
        this.optionD = optionD;
    }

    /**
     * @return the optionE
     */
    public String getOptionE() {
        return transform(optionE);
    }

    /**
     * @param optionE the optionE to set
     */
    public void setOptionE(String optionE) {
        this.optionE = optionE;
    }

    /**
     * @return the answer
     */
    public String getAnswer() {
        return answer;
    }

    /**
     * @param answer the answer to set
     */
    public void setAnswer(String answer) {
        this.answer = answer;
    }

    /**
     * @return the analysis
     */
    public String getAnalysis() {
        return transform(analysis);
    }

    /**
     * @param analysis the analysis to set
     */
    public void setAnalysis(String analysis) {
        this.analysis = analysis;
    }

    private String transform(String str) {
        if (str != null) {
            if (str.contains("<") || str.contains(">") || str.contains("&")) {
                str = str.replaceAll("&", "&amp;");
                str = str.replaceAll("<", "&lt;");
                str = str.replaceAll(">", "&gt;");
            }
        }
        return str;
    }
}
